package com.navinfo.platform.dataanalysis.range;

import com.google.common.collect.Range;

/**
 * 进气压力
 *
 * @author machi
 * @create 2018/6/21
 */

public enum IntakeAirPressureRange {

    /**
     *
     */
    INTAKE_AIR_PRESSURE_RANGE_50(Range.lessThan(50)),
    INTAKE_AIR_PRESSURE_RANGE_60(Range.closedOpen(50,60)),
    INTAKE_AIR_PRESSURE_RANGE_70(Range.closedOpen(60,70)),
    INTAKE_AIR_PRESSURE_RANGE_80(Range.closedOpen(70,80)),
    INTAKE_AIR_PRESSURE_RANGE_90(Range.closedOpen(80,90)),
    INTAKE_AIR_PRESSURE_RANGE_100(Range.closedOpen(90,100)),
    INTAKE_AIR_PRESSURE_RANGE_110(Range.closedOpen(100,110)),
    INTAKE_AIR_PRESSURE_RANGE_120(Range.closedOpen(110,120)),
    INTAKE_AIR_PRESSURE_RANGE_130(Range.closedOpen(120,130)),
    INTAKE_AIR_PRESSURE_RANGE_140(Range.closedOpen(130,140)),
    INTAKE_AIR_PRESSURE_RANGE_150(Range.closedOpen(140,150)),
    INTAKE_AIR_PRESSURE_RANGE_OVER_150(Range.greaterThan(150)),
    INTAKE_AIR_PRESSURE_VALID(Range.closed(0, 200))
    ;

    private Range<Integer> range;

    IntakeAirPressureRange(Range<Integer> range) {
        this.range = range;
    }

    public Range<Integer> getRange() {
        return range;
    }
}
